package net.scdx.hotel.dto;

import net.scdx.hotel.entity.Order;

public class OrderExecution {

    private boolean success; // result of execution

    private String msg; // failure message

    private Order order; // successful return value

    public OrderExecution() {
    }

    public OrderExecution(boolean success, String msg, Order order) {
        this.success = success;
        this.msg = msg;
        this.order = order;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }
}
